// MIT License

// Copyright (c) 2025 小羊搞飞机ydfly

// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:

// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

#include <U8g2lib.h>                                         //u8g2库
U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0, SCL, SDA); //配置构造函数

class UI
{
private:
  /* data */
public:
  UI(/* args */);
  ~UI();
  void start();       //开始界面：系统启动中>>>
  void syslogo();     // logo：YDgod OS
  void desktop();     //桌面 ：飞行  测试  设置
  void wait_unlock(); //等待解锁
  void unlocking();   //正在解锁
  void fly_ui();      //飞行界面
};

UI::UI(/* args */)
{
  u8g2.begin(); //启动u8g2驱动程序
  u8g2.clearBuffer();
}

UI::~UI()
{
}
void UI::start()
{

  u8g2.clearBuffer();
  const unsigned char starting[] U8X8_PROGMEM = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x18, 0x21, 0x00, 0x02, 0x00, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0xFC, 0x87, 0xC0, 0x00, 0x04, 0x3C, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x60, 0x80, 0xFC, 0xE7, 0x7F, 0x00, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x18, 0x8C, 0x32, 0x20, 0x40, 0xC0, 0xCF, 0xFF, 0x11, 0x40, 0x00, 0x01, 0x00, 0x80,
                                                 0x01, 0x00, 0xFC, 0x43, 0x11, 0x21, 0x40, 0x00, 0x49, 0x08, 0x61, 0x80, 0x01, 0x06, 0x00, 0x80,
                                                 0x01, 0x00, 0xC0, 0xC2, 0x08, 0xE2, 0x7F, 0x7E, 0x49, 0x08, 0xC1, 0x01, 0x07, 0x1C, 0x00, 0x80,
                                                 0x01, 0x00, 0x30, 0x84, 0xFC, 0x23, 0x00, 0x08, 0x49, 0x08, 0x01, 0x03, 0x0C, 0x30, 0x00, 0x80,
                                                 0x01, 0x00, 0xFC, 0x8F, 0x93, 0xA4, 0x7F, 0x28, 0xC9, 0xFF, 0xC1, 0x01, 0x07, 0x1C, 0x00, 0x80,
                                                 0x01, 0x00, 0x80, 0xD0, 0x90, 0xA0, 0x40, 0xA4, 0x48, 0x08, 0x61, 0x80, 0x01, 0x06, 0x00, 0x80,
                                                 0x01, 0x00, 0x90, 0x06, 0x92, 0xA4, 0x40, 0xF2, 0x08, 0x08, 0x10, 0x40, 0x00, 0x01, 0x00, 0x80,
                                                 0x01, 0x00, 0x8C, 0x9C, 0x89, 0x94, 0x7F, 0x4E, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0xE2, 0x70, 0x86, 0x97, 0x40, 0x20, 0x0E, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
                                                 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
  u8g2.setFont(u8g2_font_ncenB14_tr);
  u8g2.drawXBMP(0, 0, 128, 64, starting);
  u8g2.sendBuffer(); //加载以上内容
}
void UI::syslogo()
{
  /*ydgod 操作系统logo*/
  u8g2.clearBuffer();
  const unsigned char logo[] U8X8_PROGMEM = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xFC,0x01,0x00,0x0C,0x30,0x00,0xC0,0x83,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xFF,0x01,0x00,0x07,0x3E,0x00,0xF0,0xF3,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0xC0,0xFF,0x03,0xC0,0x03,0x3E,0x00,0xF8,0xF3,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x70,0xF8,0x03,0xF0,0x00,0x3E,0x00,0x3C,0xF2,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xF0,0x03,0x78,0x00,0x3E,0x00,0x3C,0xF0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xF0,0x03,0x3C,0xC0,0x3F,0x00,0xFC,0xF3,0x80,0x38,0x00,0x00,0x00,
0x00,0x00,0x00,0xF0,0x07,0x1F,0xF0,0x3F,0x00,0xFE,0xF3,0xF0,0x7C,0x00,0x00,0x00,
0x00,0x00,0x00,0xF0,0x83,0x07,0x78,0x3F,0x00,0xFE,0xF0,0xF0,0x7C,0x00,0x00,0x00,
0x00,0x00,0x00,0xE0,0xC3,0x03,0x78,0x3E,0x00,0x3C,0xF0,0xF0,0x7E,0x00,0x00,0x00,
0x00,0x00,0x00,0xE0,0xE3,0x00,0x78,0x3F,0x00,0x3C,0xF0,0xF0,0x3F,0x00,0x00,0x00,
0x00,0x00,0x00,0xE0,0x7B,0x00,0x78,0x3F,0x00,0x3C,0xF0,0xF0,0x3F,0x00,0x00,0x00,
0x00,0x00,0x00,0xE0,0x1F,0x00,0xF8,0x3E,0x00,0x3C,0xF0,0xF0,0x3C,0x00,0x00,0x00,
0x00,0x00,0x00,0xE0,0x07,0x00,0x78,0x3E,0x00,0x3C,0xF0,0x73,0x3C,0x00,0x00,0x00,
0x00,0x00,0x00,0xE0,0x00,0x00,0x38,0x3E,0x00,0x7C,0xE0,0x71,0x3C,0x00,0x00,0x00,
0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x0C,0x00,0x7C,0xC0,0x00,0x3C,0x00,0x00,0x00,
0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x1C,0x00,0x30,0x3C,0x00,0x00,0x00,
0x00,0x00,0x00,0xFC,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x1F,0x00,0x00,0x00,
0x00,0x00,0x00,0xFE,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x0F,0x00,0x00,0x00,
0x00,0x00,0x00,0xFE,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x07,0x00,0x00,0x00,
0x00,0x00,0x00,0xFE,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x04,0x80,0x1E,0xE0,0x03,0x40,0x0C,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x0C,0x80,0x0C,0x00,0x0A,0xE0,0x09,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x80,0x34,0xC0,0x35,0x00,0x0E,0x60,0x0A,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x40,0x64,0x80,0x24,0x00,0x06,0x40,0x0C,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x07,0x80,0x18,0x00,0x3C,0xE0,0x3F,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};
  u8g2.setFont(u8g2_font_ncenB14_tr);
  u8g2.drawXBMP(0, 0, 128, 64, logo);
  u8g2.sendBuffer(); //加载以上内容
}
void UI::desktop()
{
  u8g2.clearBuffer();
  const unsigned char desk[] U8X8_PROGMEM = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0xFE, 0xFF, 0xFF, 0x03, 0xF8, 0xFF, 0xFF, 0x0F, 0xF0, 0xFF, 0xFF, 0x1F, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0x00, 0x00, 0x02, 0x08, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0x10, 0x00, 0x02, 0x08, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0x38, 0x00, 0x02, 0x08, 0x00, 0x00, 0x08, 0x10, 0x70, 0x00, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0x38, 0x00, 0x02, 0x08, 0xF0, 0x03, 0x08, 0x10, 0xD8, 0x00, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0x38, 0x00, 0x02, 0x08, 0x48, 0x1C, 0x08, 0x10, 0x88, 0x01, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0x38, 0x00, 0x02, 0x08, 0x46, 0x20, 0x08, 0x10, 0x10, 0x03, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0x7C, 0x00, 0x02, 0x08, 0x41, 0x40, 0x08, 0x10, 0x20, 0x02, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0xFE, 0x00, 0x02, 0x88, 0x00, 0x80, 0x08, 0x10, 0x20, 0x02, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0xFF, 0x01, 0x02, 0x88, 0x00, 0x80, 0x08, 0x10, 0x21, 0x02, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x82, 0xFF, 0x03, 0x02, 0x48, 0x00, 0x00, 0x09, 0x90, 0x1E, 0x03, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0xC2, 0xFF, 0x07, 0x02, 0x48, 0xF0, 0x03, 0x09, 0xD0, 0x00, 0x02, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0xE2, 0x39, 0x0F, 0x02, 0xC8, 0x83, 0xE0, 0x09, 0x90, 0x21, 0x04, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0xF2, 0x38, 0x1E, 0x02, 0x48, 0x80, 0x00, 0x09, 0x10, 0x7E, 0x08, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x32, 0x38, 0x18, 0x02, 0x48, 0x80, 0x00, 0x09, 0x10, 0x80, 0x10, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x0A, 0x38, 0x20, 0x02, 0x88, 0x00, 0x80, 0x08, 0x10, 0x00, 0x21, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0x38, 0x00, 0x02, 0x88, 0x00, 0x80, 0x08, 0x10, 0x00, 0x42, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0x7C, 0x00, 0x02, 0x08, 0x81, 0x40, 0x08, 0x10, 0x00, 0x44, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0xFE, 0x00, 0x02, 0x08, 0x86, 0x30, 0x08, 0x10, 0x00, 0x48, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0xFF, 0x01, 0x02, 0x08, 0x98, 0x0C, 0x08, 0x10, 0x00, 0x30, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0x00, 0x00, 0x02, 0x08, 0xE0, 0x03, 0x08, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0x00, 0x00, 0x02, 0x08, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0x02, 0x00, 0x00, 0x02, 0x08, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00,
                                             0x00, 0x00, 0xFE, 0xFF, 0xFF, 0x03, 0xF8, 0xFF, 0xFF, 0x0F, 0xF0, 0xFF, 0xFF, 0x1F, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x0E, 0x7F, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0xE0, 0x84, 0x1C, 0x00, 0x40, 0x7E, 0x44, 0x00, 0x40, 0x0A, 0x55, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x80, 0x42, 0x01, 0x00, 0x00, 0x4A, 0xF0, 0x07, 0x00, 0x3B, 0x7F, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x80, 0x81, 0x3E, 0x00, 0x60, 0x5E, 0x86, 0x00, 0x60, 0x00, 0x08, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x80, 0xC2, 0x08, 0x00, 0x40, 0x6A, 0x74, 0x01, 0x40, 0x1F, 0x7F, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x80, 0x84, 0x08, 0x00, 0x40, 0x56, 0x24, 0x01, 0x40, 0x11, 0x3E, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x80, 0x81, 0x0C, 0x00, 0xC0, 0x4A, 0x74, 0x02, 0x40, 0x0A, 0x22, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x62, 0x00, 0x00, 0x40, 0x04, 0x3E, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9B, 0xFF, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  u8g2.drawXBMP(0, 0, 128, 64, desk);
  u8g2.sendBuffer();             //加载以上内容
  u8g2.drawFrame(0, 0, 128, 64); // 画矩形w,h,宽度,高度
}

void UI::wait_unlock()
{
  u8g2.clearBuffer();
  const unsigned char wait[] U8X8_PROGMEM = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x40,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x80,0xFF,0xE2,0xA3,0x35,0x08,0xC8,0x03,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x80,0x08,0x5E,0x12,0x84,0xFF,0x48,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x7E,0xE9,0x73,0xBF,0x88,0x5E,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xE0,0x08,0x1F,0x08,0xA1,0xFF,0x48,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x80,0xFF,0x56,0x71,0xA5,0x88,0x5C,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x80,0x42,0xDE,0x27,0xA5,0x88,0x6E,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x80,0x7E,0x36,0xF9,0xA5,0xFF,0x4A,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x80,0x42,0xFE,0x27,0xAD,0x08,0x69,0x0A,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x80,0x7F,0x12,0xA1,0x1A,0x08,0x29,0x0A,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xC0,0x42,0x1D,0xE1,0x21,0xF8,0x18,0x0E,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x72,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xFC,0xFF,0xFF,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0xFF,0x3F,
0x04,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x20,
0x04,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x20,
0x04,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x20,
0x04,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x20,
0x04,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x20,
0x04,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x20,
0x04,0x00,0x00,0x04,0x00,0x08,0xE0,0x3F,0x88,0xF9,0x0F,0x00,0x20,0x00,0x00,0x20,
0x04,0x00,0x00,0x04,0x00,0x88,0x27,0x21,0x77,0x00,0x00,0x00,0x20,0x00,0x00,0x20,
0x04,0x00,0x00,0x04,0x00,0xBE,0xA4,0x2F,0x11,0x00,0x00,0x00,0x20,0x00,0x00,0x20,
0x04,0x00,0x00,0x04,0x00,0xA4,0xE4,0x24,0x1F,0xFC,0x1F,0x00,0x20,0x00,0x00,0x20,
0x04,0x00,0x00,0x04,0x00,0xA4,0x24,0x27,0xF9,0x83,0x00,0x00,0x20,0x00,0x00,0x20,
0x04,0x00,0x3C,0x04,0x00,0x94,0xE4,0x38,0x99,0x90,0x04,0x00,0x20,0x3C,0x00,0x20,
0x04,0x00,0xFF,0x04,0x00,0x98,0x24,0x27,0x9F,0x88,0x08,0x00,0x20,0xFF,0x00,0x20,
0x04,0x80,0xFF,0x05,0x00,0xB8,0xA4,0x21,0x99,0x88,0x08,0x00,0xA0,0xFF,0x01,0x20,
0x04,0x80,0xFF,0x05,0x00,0xE4,0x27,0xAE,0x89,0x84,0x10,0x00,0xA0,0xFF,0x01,0x20,
0x04,0xC0,0xFF,0x07,0x00,0x82,0xE4,0xBF,0x84,0xE0,0x00,0x00,0xE0,0xFF,0x03,0x20,
0x04,0xC0,0xFF,0x07,0x00,0x00,0x20,0x20,0x00,0x00,0x00,0x00,0xE0,0xFF,0x03,0x20,
0x04,0xC0,0xFF,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x03,0x20,
0x04,0xC0,0xFF,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x03,0x20,
0x04,0x80,0xFF,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xA0,0xFF,0x01,0x20,
0x04,0x80,0xFF,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xA0,0xFF,0x01,0x20,
0x04,0x00,0xFF,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0xFF,0x00,0x20,
0x04,0x00,0x3C,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x3C,0x00,0x20,
0xFC,0xFF,0xFF,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0xFF,0x3F,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
  u8g2.drawXBMP(0, 0, 128, 64, wait);
  u8g2.sendBuffer(); //加载以上内容
}

void UI::unlocking()
{
  u8g2.clearBuffer();
  const unsigned char ulking[] U8X8_PROGMEM = {0xFF,0x0F,0x08,0x40,0xF0,0x23,0x20,0x00,0x40,0x00,0x08,0xE0,0x23,0x32,0x23,0x03,
0x40,0xC0,0xFF,0x2F,0x21,0xF2,0xA4,0x01,0x42,0x00,0x04,0xF0,0xD7,0x1B,0x20,0x00,
0x42,0x00,0x42,0xA0,0x0C,0xF8,0xFE,0x03,0x42,0x00,0x42,0xE0,0xA7,0x20,0x02,0x02,
0xC2,0x0F,0x41,0xA0,0xF4,0x27,0x22,0x02,0x42,0x80,0xFD,0xA7,0x9C,0xF8,0x22,0x02,
0x42,0x80,0x41,0xE0,0x87,0x20,0x22,0x02,0x42,0x40,0x41,0xA0,0xFC,0x27,0x22,0x02,
0x42,0x00,0x41,0xA0,0x84,0xA0,0x70,0x00,0x42,0x00,0x41,0x30,0x84,0x60,0x8C,0x01,
0xFF,0x1F,0xFD,0x9F,0x87,0xA0,0x03,0x03};
  u8g2.drawXBMP(20, 30, 58, 13, ulking);
  u8g2.sendBuffer(); //加载以上内容
}

void UI::fly_ui()
{
  u8g2.clearBuffer();
  const unsigned char fly[] U8X8_PROGMEM = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x01,0x00,0x00,0xF0,0xFF,0xFF,0xFF,0x03,0x80,0xFF,0xFF,0xFF,0x1F,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0x10,0x00,0x00,0x00,0x02,0x80,0x00,0x00,0x00,0x10,0x00,0x00,0x80,
0x01,0x00,0x00,0xF0,0xFF,0xFF,0xFF,0x03,0x80,0xFF,0xFF,0xFF,0x1F,0x00,0x00,0x80,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF};
  u8g2.drawXBMP(0, 0, 128, 64, fly);
   

  // u8g2.sendBuffer(); //加载以上内容
}
